package 内部类;

public class 匿名内部类 {
    public static void main(String[] args) {
        Animal a = new Animal(){
            @Override
            public void cry(){
                System.out.println("苗");
            }
        };
        a.cry();
    }
}
abstract class Animal{
    public abstract void cry();
}

